testsuite: Destroy surfaces
authorMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2020 13:09:26 +0000 (09:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 16 May 2020 13:12:18 +0000 (09:12 -0400)
If we don't destroy the surface, it leaks.

GDK backends keep an extra reference on the
surface for the external resources associated
with it, and only drop it in destroy().

testsuite/gtk/shortcuts.c

index 207970e6ea7930c3f8631a66fb1bfe58c65d54b5..887d53b3b08caf9656b7bdd00341f2588419e6ec 100644 (file)
@@ -356,6 +356,7 @@ test_trigger_trigger (void)
       gdk_event_unref (event);
     }
 
+  gdk_surface_destroy (surface);
   g_object_unref (surface);
 
   g_object_unref (trigger[0]);